﻿using FluentResourceMapping.AutoMapping;

namespace FluentResourceMapping
{
    public class MappingConfiguration
    {
        public MappingConfiguration()
        {
            AutoResourceMappings = new AutoResourceMappingContainer();
            TypeResourceMappings = new FluentResourceMappingContainer();
        }

        public AutoResourceMappingContainer AutoResourceMappings { get; private set; }

        public FluentResourceMappingContainer TypeResourceMappings { get; private set; }

        public void Apply(ResourceMappingModel resourceMappingModel)
        {
            AutoResourceMappings.Apply(resourceMappingModel);
            TypeResourceMappings.Apply(resourceMappingModel);
        }
    }
}